package com.iplay.java8inaction.chapter11.node112;

import java.util.Random;

/**
 * @author dangwu
 * @since 2021/10/20 10:52 上午
 */
public class Delay {
    static Random random = new Random();
    /**
     * 模拟一秒钟延迟方法
     */
    public static void delay(){
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static void doSomethingElse(){
        delay();
    };
}
